package com.it.iostream.Utils;

/**
 * @Jiang:拿到文件前后缀
 */

public class Suffix {
    //获取文件后缀
    public static String getSuffix(String fileName) {
        return  fileName.substring(fileName.lastIndexOf("."));
    }
    //获取文件前缀
    public static String getFirName(String fileName) {
        return  fileName.substring(0,fileName.lastIndexOf("."));
    }

}
